Current Location: Home> Function Categories> mt_getrandmax

mt_getrandmax

Display the maximum possible value of a random number
Name:mt_getrandmax
Category:math
Programming Language:php
One-line Description:Displays the maximum possible value of the random number.

Definition and usage

mt_getrandmax() displays the maximum possible value of the random number.

Example

 <?php
echo mt_getrandmax ( ) ;
?>

Try it yourself

grammar

 mt_getrandmax ( )

illustrate

Returns the largest random number that can be returned by calling mt_rand() .

Similar Functions
  • Sine sin

    sin

    Sine
  • Logarithm with base 10 log10

    log10

    Logarithmwithbase10
  • Calculate the oblique length of a straight triangle hypot

    hypot

    Calculatetheobliquel
  • Antihyperbolic cosine acosh

    acosh

    Antihyperboliccosine
  • Returns log(1 + number), and can calculate the exact result even when the value of number is close to zero. log1p

    log1p

    Returnslog(1+number)
  • Reverse cosine acos

    acos

    Reversecosine
  • Hyperbolic tangent tanh

    tanh

    Hyperbolictangent
  • Absolute value abs

    abs

    Absolutevalue
Popular Articles